package il.ac.braude.sona.infogui;

import java.awt.Font;

import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class InfoRow extends JPanel {
	public InfoRow() {
		setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
		setBorder(BorderFactory.createEtchedBorder());
	}
	public void setInfo(String label,String value) {
		JLabel lab=new JLabel(label+ " : ");
		lab.setFont(new Font("ariel", Font.BOLD, 20));
		add(Box.createHorizontalStrut(30));
		add(lab);
		add(Box.createHorizontalGlue());
		add(new JLabel(value));
		add(Box.createHorizontalStrut(30));
	}
}
